package com.jiyongjun.component.enums;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import java.util.Arrays;
import java.util.List;

/**
 * <h2></h2>
 * <h3>描述：</h3>
 *
 * @author yongjun.jyj
 * @since 2022/6/13 14:59
 */
public final class LogConstant {
    private LogConstant() {}

    public static final String FAIL_BIZ_PARAM_AUTO_VALIDATE_ERROR = "FAIL_BIZ_PARAM_AUTO_VALIDATE_ERROR";
    public static final String DEFAULT_BIZ_EXCEPTION_CODE = "DEFAULT_BIZ_EXCEPTION";
    public static final String DEFAULT_SERVICE_EXCEPTION_CODE = "DEFAULT_SERVICE_EXCEPTION";
    public static final String DEFAULT_SERVICE_EXCEPTION_MESSAGE = "系统繁忙，请稍后重试~";

    public static final String LOG_EXCEPTION_KEYWORD = "logException";
    public static final String LOG_WARN_KEYWORD = "logWarn";
    public static final String LOG_INFO_KEYWORD = "logInfo";
    public static final Logger DEFAULT_LOGGER = LoggerFactory.getLogger("log-default-logger");

    public static final List<String> SLS_INDEX_TOKEN = Arrays.asList(",", " ", "'", "\"", "=", "(", ")", "[", "]", "{", "}", "?", "@", "&", "<", ">", "/", ":", "\n", "\t", "\r");


}
